<div class="new_mn">
        	<b class="spbg2 corner tl"></b>
    		<b class="spbg2 corner tr"></b>
    		<b class="spbg2 corner bl"></b>
    		<b class="spbg2 corner br"></b>
    		<div class="titlebar-smenu clearfix">
    			<a href="">Your friends buy jersey, then you make money!</a>
    		</div>
    		<?php if($this->hasBuy==1):?>
    		<div style="padding:10px;color:red;text-align:left;font-weight:bold;line-height:20px;font-size:13px;">
	    		<div>Congratulations! You are our paying customer and you can join our earning plan. <br /><a target="_blank" href="/bring-a-friend-and-earn-with-us">Click here for more infomation.</a></div>
    		</div>
    		<?php else:?>
    		<div style="padding:10px;color:red;text-align:center;">Once you become our paying customer, you will get an invitation link plus an invitation code. No order amount required.</div>
    		<?php endif;?>
    		<table class="list" border="1" cellpadding="0" cellspacing="0" bordercolor="#b9b9b9" style="border-collapse:collapse;">
    			<?php if($this->hasBuy==1):?>
    			<tr>
    				<td style="padding-right: 5px; text-align: right;width:27%;"><b>Invitation link:</b><br /><span style="font-size:10px;">Those who sign up for newjerseysoccer using your invitation link will become your referee.</span></td>
    				<td style="padding-left: 5px; text-align: left;width:73%;"><span><?=$this->marketingLink?></span> <input id="copyBtn1" style="border:1px #ccc solid;padding:5px;" type="button" value="CopyToClipboard" /></td>    				
    			</tr> 
    			<tr>
    				<td style="padding-right: 5px; text-align: right;"><b>Invite code:</b><br /><span style="font-size:10px;">Tell friends the code in case they don't sign up by invitation link.</span></td>
    				<td style="padding-left: 5px; text-align: left;"><span><?=$this->inviteCode?></span> <input id="copyBtn2" style="border:1px #ccc solid;padding:5px;" type="button" value="CopyToClipboard" /></td>    				
    			</tr> 
    			<?php else:?>
    			<tr>
    				<td style="padding-right: 5px; text-align: right;width:30%;"><b>Invitation link:</b><br /><span style="font-size:10px;">Those who sign up for newjerseysoccer using your invitation link will become your referee.</span></td>
    				<td style="padding-left: 5px; text-align: left;width:70%;">*********</td>    				
    			</tr> 
    			<tr>
    				<td style="padding-right: 5px; text-align: right;"><b>Invite code:</b><br /><span style="font-size:10px;">Tell friends the code in case they don't sign up by invitation link.</span></td>
    				<td style="padding-left: 5px; text-align: left;">*********</td>    				
    			</tr> 
    			<?php endif;?>
    			<tr>
    				<td style="padding-right: 5px; text-align: right" width="350"><b>Account Balance:</b><br /> You can exchange the money to Cash Coupon. <a href="/adminb-mlm-exchange" style="color:red;text-decoration:underline;">Exchange now</a></td>
    				<td style="padding-left: 5px; text-align: left;"><?=$this->accountAmount?> credits ($<?=$this->accountAmount?>)</td>    				
    			</tr>
    			<tr>
    				<td style="padding-right: 5px; text-align: right"><b>Cleared:</b></td>
    				<td style="padding-left: 5px; text-align: left;"><?=$this->successApplyAmount?> credits ($<?=$this->successApplyAmount?>)</td>    				
    			</tr>
    			<tr>
    				<td style="padding-right: 5px; text-align: right;"><b>In progress:</b></td>
    				<td style="padding-left: 5px; text-align: left;"><?=$this->applyingAmount?> credits ($<?=$this->applyingAmount?>)</td>    				
    			</tr> 
    			<tr>
    				<td style="padding-right: 5px; text-align: right;"><b>Failed:</b></td>
    				<td style="padding-left: 5px; text-align: left;"><?=$this->failApplyAmount?> credits ($<?=$this->failApplyAmount?>)</td>    				
    			</tr>  
    			<tr>
    				<td style="padding-right: 5px; text-align: right;"><b>Layer 1 User Count:</b></td>
    				<td style="padding-left: 5px; text-align: left;"><?=$this->level1UserCount?></td>    				
    			</tr> 
    			<tr>
    				<td style="padding-right: 5px; text-align: right;"><b>Layer 2 User Count:</b></td>
    				<td style="padding-left: 5px; text-align: left;"><?=$this->level2UserCount?></td>    				
    			</tr> 
    			<tr>
    				<td style="padding-right: 5px; text-align: right;"><b>Layer 3 User Count:</b></td>
    				<td style="padding-left: 5px; text-align: left;"><?=$this->level3UserCount?></td>    				
    			</tr> 
    			<tr>
    				<td style="padding-right: 5px; text-align: right;"><b>Paypal:</b></td>
    				<td style="padding-left: 5px; text-align: left;"><?php if($this->accountAmount>0):?><a href="adminb-mlm-paypal">Apply for Money($<?=$this->accountAmount?>)</a><?php else:?>No Amount<?php endif;?></td>    				
    			</tr> 	
    		</table> 
 </div>
<script src="/html/scripts/plugin/ZeroClipboard.js"></script>
<script>
if(!!$('#copyBtn1')[0]){
	var clip = new ZeroClipboard.Client();
	clip.setHandCursor( true );
	clip.setText($('#copyBtn1').prev().html()); 
	clip.glue("copyBtn1"); 
	clip.addEventListener( "complete", function(){ 
		GGSHOP.msgBox.show("ok","The link is in your clipboard now."); 
	}); 
}
if(!!$('#copyBtn2')[0]){
	var clip2 = new ZeroClipboard.Client();
	clip2.setHandCursor( true );
	clip2.setText($('#copyBtn2').prev().html()); 
	clip2.glue("copyBtn2"); 
	clip2.addEventListener( "complete", function(){ 
		GGSHOP.msgBox.show("ok","The code is in your clipboard now."); 
	}); 	
}
</script>